const line = readline();

/**
 * 
 * @param {string} strs 
 * @returns 
 */
function main(strs){
    return [...new Set([...strs])].length;
}

console.log(main(line));